package okw.database.repositories;

import java.util.List;

import okw.database.model.Node;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface NodeRepository extends JpaRepository<Node, Long> {
	Node findByLevel(int level);

	List<Node> findAllByLevel(int level);

	Node findByIpAndPort(String ip, String port);
}
